package com.kly.user.enums;

/**
 * 操作类型：1-首页照浏览
 * @author linqu
 */
public enum LogActionEnum {

    BROSE_IMAGES(1, "Browsing images", "浏览照片","",""),
    FIRST_FLASH_CHAT(2, "FLASH_CHAT", "","",""),
    FIRST_PRIVATE_PHOTO(3, "PRIVATE_PHOTO", "","",""),
    FIRST_PRIVATE_VIDEO(4, "PRIVATE_VIDEO", "","",""),

    REGISTER(100, "REGISTER", "注册","",""),
    LOGIN(101, "LOGIN", "登陆","",""),
    BIND_ACCOUNT(102, "BIND_ACCOUNT", "绑定账号","",""),
    UNBIND_ACCOUNT(103, "UNBIND_ACCOUNT", "解绑账号","",""),
    REMOVE_ACCOUNT(104, "UNBIND_ACCOUNT", "删除账号","",""),

    HOMEPAGE_PASS(200, "HOMEPAGE_PASS", "首页pass","",""),
    HOMEPAGE_LIKE(201, "HOMEPAGE_LIKE", "首页like","",""),
    HOMEPAGE_DISLIKE(202, "HOMEPAGE_DISLIKE", "首页dislike","",""),
    WLM_DISLIKE(204, "WLM_DISLIKE", "wlm页面dislike","",""),
    FLASHCHAT(205, "FLASHCHAT", "flaschat","",""),
    SEND_WLM(206, "SEND_WLM", "wlm下发","",""),
    LIKE_BACK(207, "LIKE_BACK", "likeback下发","",""),
    ADD_BLACK_LIST(208, "ADD_BLACK_LIST", "拉黑","",""),
    REPORT_USER(209, "REPORT_USER", "举报","",""),


    TRY_TO_PURCHASE(300, "TRY_TO_PURCHASE", "拉起收银台","",""),
    SUBSCRIPTION_MEMBER(301, "SUBSCRIPTION_MEMBER", "会员订阅","",""),
    UNSUBSCRIPTION_MEMBER(302, "UNSUBSCRIPTION_MEMBER", "取消会员订阅","",""),
    PURCHASE_FLASHCHAT(303, "PURCHASE_FLASHCHAT", "flashchat购买","",""),
    PURCHASE_PRIVATE_PHOTO(304, "PURCHASE_PRIVATE_PHOTO", "private photo购买","",""),
    PURCHASE_PRIVATE_VIDEO(305, "PURCHASE_PRIVATE_VIDEO", "private video购买","",""),
    PURCHASE_FIRST_CHAT(306, "PURCHASE_FIRST_CHAT", "破冰会话","",""),
    PURCHASE_EFFECTIVE_CHAT(307, "PURCHASE_EFFECTIVE_CHAT", "有效会话","",""),
    PURCHASE_DEEP_CHAT(308, "PURCHASE_DEEP_CHAT", "深度会话","",""),
    UNLOCK_PRIVATE_PHOTO(309, "UNLOCK_PRIVATE_PHOTO", "解锁private photo","",""),
    UNLOCK_PRIVATE_VIDEO(310, "UNLOCK_PRIVATE_VIDEO", "解锁private video","",""),

    /**
     * 地理位置授权引导
     */
    NEW_REGISTER_USER_LOCATION_PERMISSION_GRANT_PAGE(400, "NEW_REGISTER_USER_LOCATION_PERMISSION_GRANT_PAGE", "新用户注册地理位置授权引导页面","",""),
    LOCATION_PERMISSION_GRANT_PAGE_WITH_5_PASS(401, "LOCATION_PERMISSION_GRANT_PAGE_WITH_5_PASS", "5次pass后弹出的地理位置授权引导页面","",""),
    LOCATION_PERMISSION_GRANT_PAGE_WITH_APP_LAUNCH(402, "LOCATION_PERMISSION_GRANT_PAGE_WITH_APP_LAUNCH", "非注册当日首次启动APP弹出地理位置授权引导页面","",""),
    LOCATION_PERMISSION_GRANTED(403, "LOCATION_PERMISSION_GRANTED", "地理位置授权上报","",""),
    /**
     * 通知授权引导
     */
    FIRST_NOTIFICATION_PAGE(500, "FIRST_NOTIFICATION_PAGE", "首次弹出通知授权引导页面","",""),
    NOTIFICATION_PAGE_WITH_EFFECTIVE_CHAT(501, "NOTIFICATION_PAGE_WITH_EFFECTIVE_CHAT", "新增有效会话弹出通知授权引导页面","",""),
    NOTIFICATION_PAGE_IN_CHAT_LIST(502, "NOTIFICATION_PAGE_IN_CHAT_LIST", "会话列表常驻通知授权引导","",""),
    NOTIFICATION_PAGE_GRANTED(503, "NOTIFICATION_PAGE_GRANTED", "通知授权上报","",""),

    /**
     * 资料填写
     */
    USER_PROFILE_NICKNAME_ON_NEXT_CLICK(600, "USER_PROFILE_NICKNAME_ON_NEXT_CLICK", "填写nickName页面点击事件","",""),
    USER_PROFILE_BIRTHDAY_ON_NEXT_CLICK(601, "USER_PROFILE_BIRTHDAY_ON_NEXT_CLICK", "填写BIRTHDATE页面点击事件","",""),
    USER_PROFILE_GENDER_ON_NEXT_CLICK(602, "USER_PROFILE_GENDER_ON_NEXT_CLICK", "选择gender页面点击事件","",""),
    USER_PROFILE_LOOKING_FOR_ON_NEXT_CLICK(603, "USER_PROFILE_LOOKING_FOR_ON_NEXT_CLICK", "填写性向事件","",""),
    USER_PROFILE_UPLOAD_IMAGE_ON_CLICK(604, "USER_PROFILE_CAMERA_IMAGE_ON_CLICK", "选择相册照片上传点击事件","",""),
    USER_PROFILE_CAMERA_IMAGE_ON_CLICK(605, "USER_PROFILE_CAMERA_IMAGE_ON_CLICK", "选择拍摄上传事件","",""),
    USER_PROFILE_UPLOAD_IMAGE_RESULT(606, "USER_PROFILE_UPLOAD_IMAGE_RESULT", "照片上传结果上报","",""),
    USER_PROFILE_UPLOAD_ON_NEXT_CLICK(607, "USER_PROFILE_UPLOAD_ON_NEXT_CLICK", "上传照片页面点击next事件","",""),
    USER_PROFILE_WYH_ON_NEXT_CLICK(608, "USER_PROFILE_WYH_ON_NEXT_CLICK", "社交目的选择页面点击事件","",""),



    HOME_LIKE(901, "HOME_LIKE", "点击喜欢/右滑","HOME","USER_CARD"),
    HOME_PASS(902, "HOME_PASS", "点击不喜欢/左滑","HOME","USER_CARD"),
    HOME_FLASHCHAT(903, "HOME_FLASHCHAT", "点击Flash chat","HOME","USER_CARD"),
    HOME_VIEWPHOTOS(904, "HOME_VIEWPHOTOS", "点击切换照片","HOME","USER_CARD"),
    HOME_PROFILE(905, "HOME_PROFILE", "点击进入他人主页","HOME","USER_CARD"),
    HOME_PROFILE_LIKE(906, "HOME_PROFILE_LIKE", "点击喜欢","HOME","PROFILE"),
    HOME_PROFILE_PASS(907, "HOME_PROFILE_PASS", "点击不喜欢","HOME","PROFILE"),
    HOME_PROFILE_FLASHCHAT(908, "HOME_PROFILE_FLASHCHAT", "点击Flash chat","HOME","PROFILE"),
    HOME_PROFILE_MORE(909, "HOME_PROFILE_MORE", "点击更多","HOME","PROFILE"),
    HOME_PROFILE_REPORT(910, "HOME_PROFILE_REPORT", "点击举报","HOME","PROFILE"),
    HOME_PROFILE_REPORTSUCCESS(911, "HOME_PROFILE_REPORTSUCCESS", "举报成功","HOME","PROFILE"),
    HOME_PROFILE_BLOCK(912, "HOME_PROFILE_BLOCK", "点击拉黑","HOME","PROFILE"),
    WLM_LIKE(203, "WLM_LIKE", "wlm页面like","WLM","WLM"),
    WLM_PASS(914,"WLM_PASS","点击不喜欢/左滑","WLM","WLM"),
    WLM_PROFILE(915,"WLM_PROFILE","点击进入他人主页","WLM","WLM"),
    WLM_PROFILE_LIKE(916,"WLM_PROFILE_LIKE","点击喜欢","WLM","PROFILE"),
    WLM_PROFILE_PASS(917,"WLM_PROFILE_PASS","点击不喜欢","WLM","PROFILE"),
    WLM_PROFILE_MORE(918,"WLM_PROFILE_MORE","点击更多","WLM","PROFILE"),
    WLM_PROFILE_REPORT(919,"WLM_PROFILE_REPORT","点击举报","WLM","PROFILE"),
    WLM_PROFILE_REPORTSUCCESS(920,"WLM_PROFILE_REPORTSUCCESS","举报成功","WLM","PROFILE"),
    WLM_PROFILE_BLOCK(921,"WLM_PROFILE_BLOCK","点击拉黑","WLM","PROFILE"),

    IM_NOTIFICATION(922,"IM_NOTIFICATION","点击系统通知","IM","IM列表"),

    IM_NEWFRIEND(923,"IM_NEWFRIEND","点击新关系","IM","IM列表"),

    IM_CHAT(924,"IM_CHAT","点击会话","IM","IM列表"),

    IM_LEFT(925,"IM_LEFT","会话左滑","IM","IM列表"),
    IM_DELETECHAT(926,"IM_DELETECHAT","点击删除会话","IM","IM列表"),
    CHAT_AVATAR(927,"CHAT_AVATAR","点击对方头像","IM","私聊页"),
    CHAT_MORE(928,"CHAT_MORE","点击更多","IM","私聊页"),
    CHAT_MORE_REPORT(930,"CHAT_MORE_REPORT","点击举报","IM","私聊页"),
    CHAT_MORE_REPORTSUCCESS(931,"CHAT_MORE_REPORTSUCCESS","举报成功","IM","私聊页"),
    CHAT_MORE_BLOCK(932,"CHAT_MORE_BLOCK","点击拉黑","IM","私聊页"),
    CHAT_PHOTO(933,"CHAT_PHOTO","点击公开照片","IM","私聊页"),
    CHAT_VIDEO(934,"CHAT_VIDEO","点击公开视频","IM","私聊页"),
    CHAT_PP(935,"CHAT_PP","点击私密照片","IM","私聊页"),
    CHAT_PV(936,"CHAT_PV","点击私密视频","IM","私聊页"),
    CHAT_ALBUM(937,"CHAT_ALBUM","点击相册","IM","私聊页"),
    CHAT_ALBUM_PV(938,"CHAT_ALBUM_PV","点击本地相册任意照片/视频","IM","私聊页"),
    CHAT_ALBUM_PV_ASPRIVATE(939,"CHAT_ALBUM_PV_ASPRIVATE","勾选本地相册任意照片/视频发送确认页的send as private","IM","私聊页"),
    CHAT_ALBUM_PV_NOPRIVATE(940,"CHAT_ALBUM_PV_NOPRIVATE","取消勾选本地相册任意照片/视频发送确认页的send as private","IM","私聊页"),
    CHAT_ALBUM_PV_ASPRIVATE_SEND(941,"CHAT_ALBUM_PV_ASPRIVATE_SEND","勾选as private后点击本地相册任意照片/视频发送确认页发送","IM","私聊页"),
    CHAT_ALBUM_PV_SEND(942,"CHAT_ALBUM_PV_SEND","不勾选as private后点击本地相册任意照片/视频发送确认页发送","IM","私聊页"),
    CHAT_PRIVATEALBUM(943,"CHAT_PRIVATEALBUM","点击私密相册","IM","私聊页"),
    CHAT_PRIVATEALBUM_PV(945,"CHAT_PRIVATEALBUM_PV","点击私密相册任意照片/视频","IM","私聊页"),
    CHAT_PRIVATEALBUM_PV_SEND(946,"CHAT_PRIVATEALBUM_PV_SEND","点击私密相册任意照片/视频发送确认页发送","IM","私聊页"),
    HOME_VIEW_SUB(947,"HOME_VIEW_SUB","首页左滑/不喜欢/喜欢用户达浏览上限拉起会员订阅","付费","会员订阅"),
    HOME_VIEW_SUBSUCCESS(948,"HOME_VIEW_SUBSUCCESS","首页左滑/不喜欢/喜欢用户达浏览上限拉起会员订阅支付成功","付费","会员订阅"),
    HOME_LIKE_SUB(951,"HOME_LIKE_SUB","首页右滑/喜欢用户达上限拉起会员订阅","付费","会员订阅"),
    HOME_LIKE_SUBSUCCESS(952,"HOME_LIKE_SUBSUCCESS","首页右滑/喜欢用户达上限拉起会员订阅支付成功","付费","会员订阅"),
    HOME_UNLOCK_SUB(955,"HOME_UNLOCK_SUB","首页点击unlock now拉起会员订阅","付费","会员订阅"),
    HOME_UNLOCK_SUBSUCCESS(956,"HOME_UNLOCK_SUBSUCCESS","首页点击unlock now拉起会员订阅支付成功","付费","会员订阅"),
    HOME_FLASHCHAT_SUB(957,"HOME_FLASHCHAT_SUB","首页点击flash chat拉起会员订阅","付费","会员订阅"),
    HOME_FLASHCHAT_SUBSUCCESS(958,"HOME_FLASHCHAT_SUBSUCCESS","首页点击flash chat拉起会员订阅支付成功","付费","会员订阅"),
    HOME_PROFILE_FLASH_CHAT_SUB(959,"HOME_PROFILE_FLASH_CHAT_SUB","首页-profile页点击flash chat拉起会员订阅","付费","会员订阅"),
    HOME_PROFILE_FLASH_CHAT_SUBSUCCESS(960,"HOME_PROFILE_FLASH_CHAT_SUBSUCCESS","首页-profile页点击flash chat拉起会员订阅支付成功","付费","会员订阅"),
    WLM_LIKE_SUB(961,"WLM_LIKE_SUB","WLM右滑/点击喜欢拉起会员订阅","付费","会员订阅"),
    WLM_LIKE_SUBSUCCESS(962,"WLM_LIKE_SUBSUCCESS","WLM右滑/点击喜欢拉起会员订阅支付成功","付费","会员订阅"),
    WLM_PASS_SUB(963,"WLM_PASS_SUB","WLM左滑拉起会员订阅","付费","会员订阅"),
    WLM_PASS_SUBSUCCESS(964,"WLM_PASS_SUBSUCCESS","WLM左滑拉起会员订阅支付成功","付费","会员订阅"),
    WLM_UNLOCK_SUB(965,"WLM_UNLOCK_SUB","WLM点击成为会员拉起会员订阅","付费","会员订阅"),
    WLM_UNLOCK_SUBSUCCESS(966,"WLM_UNLOCK_SUBSUCCESS","WLM点击成为会员拉起会员订阅支付成功","付费","会员订阅"),
    CHAT_PRIVATEALBUM_SUB(967,"CHAT_PRIVATEALBUM_SUB","私聊页点击私密相册成为会员拉起会员订阅","付费","会员订阅"),
    CHAT_PRIVATEALBUM_SUBSUCCESS(968,"CHAT_PRIVATEALBUM_SUBSUCCESS","私聊页点击私密相册成为会员拉起会员订阅支付成功","付费","会员订阅"),
    CHAT_PP_SUB(969,"CHAT_PP_SUB","解锁pp时是非会员状态 拉起会员订阅","付费","会员订阅"),
    CHAT_PP_SUBSUCCESS(970,"CHAT_PP_SUBSUCCESS","解锁pp时是非会员状态 拉起会员订阅支付成功","付费","会员订阅"),
    CHAT_PV_SUB(971,"CHAT_PV_SUB","解锁pv时是非会员状态 拉起会员订阅","付费","会员订阅"),
    CHAT_PV_SUBSUCCESS(972,"CHAT_PV_SUBSUCCESS","解锁pv时是非会员状态 拉起会员订阅支付成功","付费","会员订阅"),
    ME_NONMEMBER_PREMIUM(973,"ME_NONMEMBER_PREMIUM","Me非会员点击进入会员订阅页","付费","会员订阅"),
    ME_NONMEMBER_PREMIUMSUCCESS(974,"ME_NONMEMBER_PREMIUMSUCCESS","Me非会员点击进入会员订阅页支付成功","付费","会员订阅"),
    ME_MEMBER_PREMIUM(975,"ME_MEMBER_PREMIUM","Me会员点击进入会员订阅页","付费","会员订阅"),
    ME_MEMBER_PREMIUM_UNSUB(976,"ME_MEMBER_PREMIUM_UNSUB","Me会员点击进入会员订阅页取消订阅","付费","会员订阅"),
    ME_MEMBER_PREMIUMSUCCESS(977,"ME_MEMBER_PREMIUMSUCCESS","Me会员点击进入会员订阅页换购成功","付费","会员订阅"),
    HOME_FLASHCHAT_BUY(978,"HOME_FLASHCHAT_BUY","首页点击flash chat拉起购买弹窗","付费","FLASH CHAT"),
    HOME_FLASHCHAT_BUYSUCCESS(979,"HOME_FLASHCHAT_BUYSUCCESS","首页点击flash chat拉起购买弹窗支付成功","付费","FLASH CHAT"),
    HOME_PROFILE_FLASH_CHAT_BUY(980,"HOME_PROFILE_FLASH_CHAT_BUY","首页-profile页点击flash chat拉起购买弹窗","付费","FLASH CHAT"),
    HOME_PROFILE_FLASH_CHAT_BUYSUCCESS(981,"HOME_PROFILE_FLASH_CHAT_BUYSUCCESS","首页-profile页点击flash chat拉起购买弹窗支付成功","付费","FLASH CHAT"),
    ME_FLASHCHAT_BUY(982,"ME_FLASHCHAT_BUY","Me点击flash chat拉起购买弹窗","付费","FLASH CHAT"),
    ME_FLASHCHAT_BUYSUCCESS(983,"ME_FLASHCHAT_BUYSUCCESS","Me点击flash chat拉起购买弹窗支付成功","付费","FLASH CHAT"),
    CHAT_PP_BUY(984,"CHAT_PP_BUY","私聊页点击pp拉起购买弹窗","付费","PRIVATE PHOTO"),
    CHAT_PP_BUYSUCCESS(985,"CHAT_PP_BUYSUCCESS","私聊页点击pp拉起购买弹窗支付成功","付费","PRIVATE PHOTO"),
    ME_PP_BUY(986,"ME_PP_BUY","Me点击pp拉起购买弹窗","付费","PRIVATE PHOTO"),
    ME_PP_BUYSUCCESS(987,"ME_PP_BUYSUCCESS","Me点击pp拉起购买弹窗支付成功","付费","PRIVATE PHOTO"),
    CHAT_PV_BUY(990,"CHAT_PV_BUY","私聊页点击pv拉起购买弹窗","付费","PRIVATE VIDEO"),
    CHAT_PV_BUYSUCCESS(991,"CHAT_PV_BUYSUCCESS","私聊页点击pv拉起购买弹窗支付成功","付费","PRIVATE VIDEO"),
    ME_PV_BUY(992,"ME_PV_BUY","Me点击pv拉起购买弹窗","付费","PRIVATE VIDEO"),
    ME_PV_BUYSUCCESS(994,"ME_PV_BUYSUCCESS","Me点击pv拉起购买弹窗支付成功","付费","PRIVATE VIDEO"),


    ;


    private final int type;

    private final String Value;

    private final String description;

    private final String module;

    private final String sourcePage;


    LogActionEnum(int type, String value, String description, String module, String sourcePage) {
        this.type = type;
        Value = value;
        this.description = description;
        this.module = module;
        this.sourcePage = sourcePage;
    }

    public int getType() {
        return type;
    }

    public String getValue() {
        return Value;
    }

    public String getDescription() {
        return description;
    }


    public static LogActionEnum fromType(int type) {
        for (LogActionEnum userStatus : values()) {
            if (userStatus.getType() == type) {
                return userStatus;
            }
        }
        return null;
    }


    public static LogActionEnum fromValue(String value) {
        for (LogActionEnum loginEnum : values()) {
            if (loginEnum.getValue().equals(value)) {
                return loginEnum;
            }
        }
        return null;
    }

}
